<form class="form-horizontal" role="form" method="post" action="<?=site_url('code/editCode') ?>">
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">Color</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" placeholder="Color" name="color" value="<?=$product['color']; ?>">
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">XS</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" placeholder="Code XS" name="xs" value="<?=$product['xs']; ?>">
      <!-- <input type="text" name="xs_quantity" class="form-control" placeholder="#Quantity"> -->
    </div>    
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">S</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" placeholder="Code S" name="s" value="<?=$product['s']; ?>">
      <!-- <input type="text" name="s_quantity" class="form-control" placeholder="#Quantity"> -->
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">M</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" placeholder="Code M" name="m" value="<?=$product['m']; ?>">
      <!-- <input type="text" name="m_quantity" class="form-control" placeholder="#Quantity"> -->
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">L</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" placeholder="Code L" name="l" value="<?=$product['l']; ?>">
      <!-- <input type="text" name="l_quantity" class="form-control" placeholder="#Quantity"> -->
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">XL</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" placeholder="Code XL" name="xl" value="<?=$product['xl']; ?>">
      <!-- <input type="text" name="xl_quantity" class="form-control" placeholder="#Quantity"> -->
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">XXL</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" placeholder="Code XXL" name="xxl" value="<?=$product['xxl']; ?>">
      <!-- <input type="text" name="xxl_quantity" class="form-control" placeholder="#Quantity"> -->
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">XXXL</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" placeholder="Code XXXL" name="xxxl" value="<?=$product['xxxl']; ?>">
      <!-- <input type="text" name="xxxl_quantity" class="form-control" placeholder="#Quantity"> -->
    </div>
  </div>  
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
       <button type="submit" name="editCode" value="<?=$product_id; ?>" class="btn btn-primary">Edit code</button>
       <!-- <button type="submit" name="backBtn" value="back" class="btn btn-success">Back to previous page</button> -->
    </div>
  </div>
</form>
